package com.evenmo.hrms.controller.oldController;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试页面跳转，旧页面转移到oldhtml目录下了
 */
@Controller
@RequestMapping("/page")
public class PageController {

    @GetMapping("/login")
    public String toLogin() {
        return "oldhtml/login";
    }

    @GetMapping("/user")
    public String toUser() {
        return "oldhtml/user";
    }

    @GetMapping("/dept")
    public String toDept() {
        return "oldhtml/dept";
    }

    @GetMapping("/deptInfo")
    public String toDeptInfo() {
        return "oldhtml/deptInfo";
    }

    @GetMapping("/addDept")
    public String toAddDept() {
        return "oldhtml/addDept";
    }

    @GetMapping("/updateDept")
    public String toUpdateDept() {
        return "oldhtml/updateDept";
    }

    // 到测试ajax 传参测试页面
    @GetMapping("/conditionForajax")
    public String toConditionForajax() {
        return "oldhtml/conditionForajax";

    }
}
